<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="empty">
   <div style="padding-left:20px;padding-top:20px;padding-bottom:20px;width:70%;" align="left">
   <div style="font-family:tahoma;font-size:12pt;color:black;
   padding-bottom:5px;">
   <img src="/imgs/warning.gif"/>&#32;&#32;<b>Messaggio Importante</b>
   </div>
   <div class="body" style="padding-bottom:2px;">
   Si è verificato un errore, in quanto l'utente che stai cercando di visualizzare non risulta presente nel nostro database, probabilmente si tratta di un utente che ha scelto di cancellare il proprio account.<br/>
   Forse sei arrivato su questa pagina attraverso un link di un motore di ricerca, un link trovato su di un sito esterno, oppure un link che hai memorizzato tra i tuoi preferiti sul tuo browser internet?<br/>
   Ci spiace ma non è più un link valido.
   </div>
   </div>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="User">

<xsl:variable name="sesso">
   <xsl:choose>
      <xsl:when test='@sexid="24" or @sexid="26"'>
         1
      </xsl:when>
      <xsl:when test='@sexid="25" or @sexid="27"'>
         0
      </xsl:when>
   </xsl:choose>
</xsl:variable>



<xsl:variable name="smile">
   <xsl:choose>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 0">
         /imgs/ecool.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 1">
         /imgs/ewink.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 2">
         /imgs/elove.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 3">
         /imgs/etongue.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 4">
         /imgs/ecrazy.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 5">
         /imgs/ehappy.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 6">
         /imgs/esmile.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 7">
         /imgs/eeyes.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 8">
         /imgs/econfused.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 9">
         /imgs/esad.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 10">
         /imgs/eangry.gif
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) )">
         /imgs/eqmark.gif
      </xsl:when>
      <xsl:otherwise>
         /imgs/spacer.gif
      </xsl:otherwise>
   </xsl:choose>
</xsl:variable>

<xsl:variable name="emoDescr">
   <xsl:choose>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 0">
         Oggi mi sento troppo figo/a!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 1">
         Ci siamo capiti...
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 2">
         Ho una cotta in corso!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 3">
         Oggi sono arrapato!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 4">
         Oggi non ci sto con la testa!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 5">
         Sto troppo bene!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 6">
         Sto bene!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 7">
         Mhh... Boh... Ci devo pensare...
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 8">
         Mi sta prendendo la depressione...
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 9">
         Nessuno mi vuole bene!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) ) and @emo = 10">
         Oggi mi girano!
      </xsl:when>
      <xsl:when test="( (floor( @settings div 1024 ) mod 2)  or (floor( @settings div 2048 ) mod 2) )">
         ???
      </xsl:when>
      <xsl:otherwise>

      </xsl:otherwise>
   </xsl:choose>
</xsl:variable>


<xsl:variable name="ColoreSfondo">
  #F4EFDF
</xsl:variable>

<div style="text-align:right;">
	<xsl:choose>
	 <xsl:when test='@approved = 1'>
		 <xsl:choose>
			 <xsl:when test='( 1!= (floor( @settings div 128 ) mod 2) and 1!= (floor( @settings div 256 ) mod 2) and 1!= (floor( @settings div 512 ) mod 2) )   or (floor( @authlevel div 2048 ) mod 2) or (floor( @settings div 128 ) mod 2) or ((floor( @settings div 256 ) mod 2) and (@userid = @viewerid))  or ((floor( @settings div 256 ) mod 2) and (@isbuddy = 1))'>

				<xsl:choose>
					<xsl:when test="count(@thumb) &gt; 0 and count(@splash) &gt; 0">
						<a href="/showUserPics.aspx?userGuid={@GUID}"><img border="0" src="http://imgs.fricchettone.com/user/thumb/{@thumb}"/></a>
					</xsl:when>
					<xsl:when test="count(@thumb) &gt; 0 and count(@splash) = 0">
						<img border="0" src="http://imgs.fricchettone.com/user/thumb/{@thumb}"/>
					</xsl:when>
					<xsl:when test="count(@thumb) = 0 and count(@splash) = 0 and count(@picname) &gt; 0">
						<a href="/showUserPics.aspx?userGuid={@GUID}"><img border="0" src="http://imgs.fricchettone.com/user/thumb/{@thumb}"/></a>
					</xsl:when>
					<xsl:otherwise>
					</xsl:otherwise>
				</xsl:choose>

				</xsl:when>
				<xsl:when test='(floor( @settings div 256 ) mod 2)'>
					<img border="0" src="/imgs/nobuddy.gif"/>
				</xsl:when>
				<xsl:when test='(floor( @settings div 512 ) mod 2)'>
					<img border="0" src="/imgs/nostaff.gif"/>
				</xsl:when>
				<xsl:otherwise>
					<img src="/imgs/userinfo/user_foto.gif" width="168" height="134" border="0"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:when>
		<xsl:otherwise>
			<img src="/imgs/userinfo/user_foto.gif" width="168" height="134" border="0"/>
		</xsl:otherwise>
	</xsl:choose>
</div>

<div style="padding-top:10px;padding-bottom:10px;text-align:right;">
<nobr>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="@uStatus"/>
		<xsl:with-param name="sexid" select="@sexid"/>
		<xsl:with-param name="certified" select="@certified"/>
		<xsl:with-param name="userid" select="@userid"/>
		<xsl:with-param name="nick" select="@Nick"/>
		<xsl:with-param name="bold" select="/activity/@loggedUser=@userid"/>
		<xsl:with-param name="buddy" select="@buddy=@userid"/>
		<xsl:with-param name="newbie" select="@dayiscr&lt;15 and ( (floor( /activity/@loggedStatus div 4) mod 2) or (floor( /activity/@loggedStatus div 16) mod 2) or (floor( /activity/@loggedStatus div 32) mod 2) )"/>
</xsl:call-template>
</nobr>
</div>
<div style="padding-bottom:3px;text-align:right;">
<!--
	<xsl:choose>
		<xsl:when test='$sesso=0 and @eta &lt; 30'>
		ragazza, <xsl:value-of select="@eta"/> anni
		</xsl:when>
		<xsl:when test='$sesso=1 and @eta &lt; 30'>
		ragazzo, <xsl:value-of select="@eta"/> anni
		</xsl:when>
		<xsl:when test='$sesso=0'>
		donna, <xsl:value-of select="@eta"/> anni
		</xsl:when>
		<xsl:when test='$sesso=1'>
		uomo, <xsl:value-of select="@eta"/> anni
		</xsl:when>
	</xsl:choose>
-->
	<xsl:choose>
		<xsl:when test='$sesso=0 and @certified = 1'>
		certificata, <xsl:value-of select="@eta"/> anni
		</xsl:when>
		<xsl:when test='$sesso=1 and @certified = 1'>
		certificato, <xsl:value-of select="@eta"/> anni
		</xsl:when>
		<xsl:when test='$sesso=0'>
		<xsl:value-of select="@eta"/> anni
		</xsl:when>
		<xsl:when test='$sesso=1'>
		<xsl:value-of select="@eta"/> anni
		</xsl:when>
	</xsl:choose>
</div>
<div style="padding-bottom:3px;text-align:right;">
<xsl:value-of select="@place"/>
</div>
<xsl:variable name="userid" select="@GUID"/>
<div style="padding-top:5px;padding-bottom:3px;text-align:right;">
	<xsl:choose>
		<xsl:when test='count(/User/onlineusers/freak/user[@userid = $userid])'>
		online <img src="/imgs/online.gif" border="0"/>
		</xsl:when>
		<xsl:otherwise>
		offline <img src="/imgs/offline.gif" border="0"/>
		</xsl:otherwise>
	</xsl:choose>
</div>
<!--
<div style="padding-bottom:3px;text-align:right;">
	<xsl:choose>
	<xsl:when test='count(/User/online/row[@userid = $userid])'>
	</xsl:when>
		<xsl:when test='@llmi &lt;= 119'>
			era qui <b><xsl:value-of select="@llmi"/> minuti fa</b>
		</xsl:when>
		<xsl:when test='@llmi &gt; 120 and @llhh &lt;= 71'>
			era qui <b><xsl:value-of select="@llhh"/> ore fa</b>
		</xsl:when>
		<xsl:when test='@llhh &gt; 72 and @lldd &lt;= 45'>
			era qui <b><xsl:value-of select="@lldd"/> giorni fa</b>
		</xsl:when>
		<xsl:otherwise>
			ultimo login <xsl:value-of select="substring(@lastlogin,9,2)"/>-<xsl:value-of select="substring(@lastlogin,6,2)"/>-<xsl:value-of select="substring(@lastlogin,1,4)"/>
		</xsl:otherwise>
	</xsl:choose>
</div>
-->
<!--
<div style="padding-bottom:3px;text-align:right;">
<xsl:choose>
    <xsl:when test='(floor( @status div 1024 ) mod 2) or (floor( @status div 4 ) mod 2) or (floor( @status div 16 ) mod 2) or (floor( @status div 32 ) mod 2)'>
    <img src="/imgs/userinfo/user_staff.gif" width="84" height="28" border="0"/>
    </xsl:when>
    <xsl:otherwise>
    <img src="/imgs/userinfo/user_normal.gif" width="84" height="28" border="0"/>
    </xsl:otherwise>
</xsl:choose>
</div>
-->
<!--
<div style="padding-bottom:3px;text-align:right;">
	<xsl:choose>
		<xsl:when test='$sesso=0'>
		iscritta dal
		</xsl:when>
		<xsl:when test='$sesso=1'>
		iscritto dal
		</xsl:when>
	</xsl:choose>
	<xsl:value-of select="substring(@datetime,9,2)"/>-<xsl:value-of select="substring(@datetime,6,2)"/>-<xsl:value-of select="substring(@datetime,1,4)"/>
</div>
-->
<xsl:variable name="writehimher">
   <xsl:choose>
      <xsl:when test='@sexid="24" or @sexid="26"'>
         scrivigli
      </xsl:when>
      <xsl:when test='@sexid="25" or @sexid="27"'>
         scrivile
      </xsl:when>
   </xsl:choose>
</xsl:variable>

<!--
<div style="padding-bottom:3px;text-align:right;">
<span class="b10b"><a class="shy" href="">(profilo completo)</a></span>
</div>
-->

</xsl:template>
</xsl:stylesheet>
